{#{% extends 'Base/main.content.lists.div.html.twig' %}#}
{#{% import 'Base/list_item.twig' as listItem %}#}
{% extends 'Back/Sano/list.creator.html.twig' %}
{% import 'Back/Sano/list.item.twig' as listItem %}
{#默认不能删除和新增#}
{% block addBtn %}{% endblock %}
{#{% block delBtn %}{% endblock %}#}
{% block tableHead %}
    <tr>
        <th align="" width="5%">选择</th>
        <th align="" width="">{{config.user.label}}</th>
        <th align="" width="">{{config.money.label}}</th>
{#        <th align="" width="">{{config.card.label}}</th>#}
        <th align="" width="">{{config.createAt.label}}</th>
        <th align="" width="">{{config.status.label}}</th>
        <th align="" width="">{{config.dealAt.label}}</th>
        <th align="" width="">{{config.message.label}}</th>
        <th align="center" width="8%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.id }}"/></span>
            </td>
            <td align='' width='' id='user_{{ Entity.id }}'>
                <div>
                    用户昵称：{{ listItem.text('user',Entity.user,Entity.id) }}
                </div>
                <div>
                    手机号：{{ listItem.text('user',Entity.user,Entity.id) }}
                </div>

                <div>姓名：{{ listItem.text('card',Entity.card.name,Entity.id) }}</div>
                <div>卡号：{{ listItem.text('card',Entity.card.card,Entity.id) }}</div>
                <div>银行：{{ listItem.text('card',Entity.card.bank,Entity.id) }}</div>
                <div>开户行：{{ listItem.text('card',Entity.card.bankAddress,Entity.id) }}</div>
            </td>
            <td align='' width='' id='money_{{ Entity.id }}'>
                {{ listItem.text('money',Entity.money,Entity.id) }}
            </td>
{#            <td align='' width='' id='card_{{ Entity.id }}'>#}
{#            </td>#}
            <td align='' width='' id='createAt_{{ Entity.id }}'>
                {{ listItem.day('createAt',Entity.createAt,Entity.id) }}
            </td>
            <td align='' width='' id='status_{{ Entity.id }}'>
{#                {{ listItem.text('status',Entity.status,Entity.id) }}#}
                {{ Entity.status == 0?"等待处理":"" }}
                {{ Entity.status == 1?"已处理付款":"" }}
                {{ Entity.status == 2?"驳回":"" }}
            </td>
            <td align='' width='' id='dealAt_{{ Entity.id }}'>
                {{ listItem.day('dealAt',Entity.dealAt,Entity.id) }}
            </td>
            <td align='' width='' id='message_{{ Entity.id }}'>
                {{ listItem.text('message',Entity.message,Entity.id) }}
            </td>
            <td align='' width=''>
                {{ listItem.edit('MoneyCashLog','',Entity.id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

